package com.sunny.ynhz.bean;

import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
import io.realm.annotations.Required;

/**
 * Created by luao on 2017/10/17.
 */

public class PatrolBean extends RealmObject {
    /**
     * uuid
     */
    @Required
    @PrimaryKey
    private String id;
   private String userId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean isEnd() {
        return isEnd;
    }

    public void setEnd(boolean end) {
        isEnd = end;
    }

    public RealmList<LocationBean> getLocationBeanlist() {
        return locationBeanlist;
    }

    public void setLocationBeanlist(RealmList<LocationBean> locationBeanlist) {
        this.locationBeanlist = locationBeanlist;
    }

    /**
     * 是否结束
     */
    private boolean isEnd;
    /**
     * 巡河轨迹
     */
    private RealmList<LocationBean> locationBeanlist;

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    /**
     * 开始时间
     */
    private String startTime;

    /**
     * 结束时间
     */
    private String endTime;

    public String getRiverId() {
        return riverId;
    }

    public void setRiverId(String riverId) {
        this.riverId = riverId;
    }

    /**
     * 正在巡河的河流的id
     */
    private String riverId;


    public String getRiverName() {
        return riverName;
    }

    public void setRiverName(String riverName) {
        this.riverName = riverName;
    }

    private String riverName;

    public boolean isUploaded() {
        return isUploaded;
    }

    public void setUploaded(boolean uploaded) {
        isUploaded = uploaded;
    }

    /**
     * 是否已经上传
     */
    private boolean isUploaded;
    /**
     * 是否是离线巡河
     */
    private boolean isOnline;


    public Double getStartLttd() {
        return startLttd;
    }

    public PatrolBean setStartLttd(Double startLttd) {
        this.startLttd = startLttd;
        return this;
    }

    public Double getStartLgtd() {
        return startLgtd;
    }

    public PatrolBean setStartLgtd(Double startLgtd) {
        this.startLgtd = startLgtd;
        return this;
    }

    public Double getEndLttd() {
        return endLttd;
    }

    public PatrolBean setEndLttd(Double endLttd) {
        this.endLttd = endLttd;
        return this;
    }

    public Double getEndLgtd() {
        return endLgtd;
    }

    public PatrolBean setEndLgtd(Double endLgtd) {
        this.endLgtd = endLgtd;
        return this;
    }

    private Double startLttd;

    private Double startLgtd;

    private Double endLttd;

    private Double endLgtd;

    public Float getDistance() {
        return distance;
    }

    public PatrolBean setDistance(Float distance) {
        this.distance = distance;
        return this;
    }

    /**
     * 巡河距离（m）
     */
    private Float distance;

    public boolean isOnline() {
        return isOnline;
    }

    public void setOnline(boolean online) {
        isOnline = online;
    }

    public boolean isNeedContinue() {
        return isNeedContinue;
    }

    public void setNeedContinue(boolean needContinue) {
        isNeedContinue = needContinue;
    }

    /**
     * 是否需要继续巡河，创建的时候false，第二次进入程序的时候判断赋值
     */
    private boolean isNeedContinue;


    public String getSectionId() {
        return sectionId;
    }

    public void setSectionId(String sectionId) {
        this.sectionId = sectionId;
    }

    /**
     *
     */
    private String sectionId;


}
